package main;

/**
 * 装饰抽象类，继承了Component类，从外类来扩展Component的功能，
 * Component是无需知道Decoratoe的存在的
 *
 */
public abstract class Decorator  extends  Component{

    /**
     * 被装饰的对象
     */
    private Component component;

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {

    }
}
